//*****************************************************************************
// Wireless.h
//*****************************************************************************

#ifndef __WIRELESS_H__
#define __WIRELESS_H__

#include "inc/hw_types.h"

typedef struct
{
	unsigned char rightWheelSpeed;
	unsigned char rightDirection;

	unsigned char leftWheelSpeed;
	unsigned char leftDirection;
}
DanceInstruction;


extern void WirelessInit();
extern void WirelessTask(void *pvParam);

extern void LeaderLink1();
extern void LeaderLink2();
extern void SendInstruction(DanceInstruction instruction);

extern void FollowerLink();
extern DanceInstruction GetNextInstruction();
extern tBoolean IsInstructionWaiting();
extern tBoolean WasInstructionReceived(DanceInstruction* newInstruction);

#endif
